package cn.xo68.boot.qrcode.properties;


import cn.xo68.boot.qrcode.QrCodeLogoSizeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 配置
 */
@Data
@ConfigurationProperties(prefix = "wuxie.qrcode")
@Configuration
public class QrCodeProperties {


    /**
     * 二维码的宽高
     */
    private int with=300;

    private int heith=300;

    private int margin=0;

    /**
     * 图片格式,[png,jpg]
     */
    private String imageFormat="png";

    /**
     * 图片的最大字节数，用于申请内存
     */
    private int maxSize=1024;

    /**
     * 背景
     */
    private int background=0xFFFFFFFF;

    /**
     * 点阵颜色
     */
    private int color=0xFF000000;

    /**
     * logo大小
     */
    private QrCodeLogoSizeEnum logoSize= QrCodeLogoSizeEnum.DIVIDE_4;

    /**
     * logo是否有边框
     */
    private boolean logoBorder=true;
}
